<?php
	$tr=$_GET['id'];
	require 'db_contact.php';
	$sql="delete from tb_emp where id=$tr";
	
	$rs=$db->query($sql);//当$rs为添加的记录数
	
	if ($rs==1)
	{
		  echo "<script>";
		  echo "window.location.href='main.php';";
		  echo "</script>";
	}
	else
	{
		   echo "<script>";
		   echo "alert('留言失败');";
		   echo "window.location.href='main.php';";
		   echo "</script>";
	}
	